package day05.ti.BaoZhuang;

import java.util.Scanner;

public class Ti02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("姓名");
        String name = sc.nextLine();
        System.out.println("年龄");
        String str_age = sc.nextLine();
        System.out.println("身高");
        String str_sg = sc.nextLine();
        System.out.println("婚否");
        String str_hy = sc.nextLine();
        System.out.println("性别");
        String str_xb = sc.nextLine();
        int age = Integer.parseInt(str_age);
        double sg = Double.parseDouble(str_sg);
        boolean hy = Boolean.parseBoolean(str_hy);
        char xb = str_xb.charAt(0);
        Student s=new Student(name,age,sg,hy,xb);
        System.out.println(s);

    }
}
